<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

$mwus = array();

$mwus[prefix_table] = "mw_";
$mwus[search_table] = $mwus[prefix_table] . "united_search";
$mwus[config_table] = $mwus[prefix_table] . "united_search_config";
$mwus[site_table]   = $mwus[prefix_table] . "united_site";
$mwus[direct_table] = $mwus[prefix_table] . "united_direct";

$mwus[path] = "$g4[path]/plugin/united-search"; // 플러그인 경로
$mwus[skin_path] = "$mwus[path]/skin"; // 스킨경로

$tmp_row = sql_fetch("select * from $mwus[config_table] limit 1", false);
if (is_array($tmp_row)) {
    foreach ($tmp_row as $key => $val) {
	$mwus[$key] = $val;
    }
} else {
    sql_query("insert into $mwus[config_table] set us_skin = 'basic'", false);
    $mwus[us_skin] = "basic";
}

$mwus_site = array("gr_id" => "@site", "gr_subject" => "사이트");

$mwus_skin_path = "$mwus[skin_path]/$mwus[us_skin]";

?>
